package com.project.service.impl;

import com.project.bean.ChannelBean;
import com.project.mapper.IChannelMapper;
import com.project.mapper.IPostMapper;
import com.project.service.IChannelService;
import com.project.service.IPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ChannelServiceImpl implements IChannelService {
    @Autowired
    private IChannelMapper channelMapper;
    @Autowired
    private IPostMapper postMapper;
    @Override
    public List<ChannelBean> findAll() {
        return channelMapper.findAll();
    }


}
